package com.tbh.inject.constructor;

public class TextEditor {

    private SpellChecker spellChecker;

    TextEditor(SpellChecker spellChecker) {
        System.out.println("Inside TextEditor constructor.");
        this.spellChecker = spellChecker;
    }

    public void spelling() {
        spellChecker.checkSpelling();
    }
}
